<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="服务借用统计" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="col-xs-2 operate-bar">
                    <li yb-download download-url="exportParam.mainUrl" download-param="mainCondition">
                        <button class="btn btn-operate m-r-xs" >导出</button>
                    </li>
                </div>
                <div class="search-bar wrapper-none col-xs-10">
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="服务人员名称"
                                ng-model="mainCondition.userName">
                        <span class="input-group-addon cursor-pointer" ng-click="search()">搜索</span>
                    </div>
                </div>
            </div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{mainTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in mainTbConf.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="mainDataList.length > 0">
                        <table class="table-fixed border-none" width="{{mainTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in mainDataList track by $index">
                                <td class="spill-dots" ng-repeat="itemCol in mainTbConf.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="viewDetail(item)">查看详情</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="mainDataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="mainPageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[1]" ng-if="activeFlag[1]||activeFlag[2]" ng-click="changeTab(1)">
            <div class="row wrapper-y-xs">
                <div class="col-xs-4 operate-bar">
                    <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                        <button class="btn btn-operate m-r-xs" >导出详情</button>
                    </li>
                </div>
                <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                    <div class="m-l-xs pull-right">
                        <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(0)">返回</button>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:75px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="viewTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index">
                                    <td ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="getBorrowList()"></div>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]" ng-click="changeTab(2)">
            <div class="row wrapper-y-xs">
                <div class="col-xs-4 operate-bar">
                    <li yb-download download-url="exportParam.allDetailUrl" download-param="exportParam.detailParam">
                        <button class="btn btn-operate m-r-xs" >导出详情</button>
                    </li>
                </div>
                <div class="search-bar wrapper-none col-xs-8 wrapper-y-sm">
                    <div class="m-l-xs pull-right">
                        <button type="button" class="btn m-r-sm sm-button-padding" ng-click="changeTab(1)">返回</button>
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:75px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in viewTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="viewTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="serviceObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in serviceObj.materialList track by $index">
                                    <td ng-repeat="itemCol in viewTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        class="spill-dots" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="serviceObj.materialList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="detailPageInfo" yb-refresh="getBorrowUsingDetail()"></div>
            </div>
        </div>
    </div>
</div>